<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<ul>
{#URL方法一#}
{#    {% for k,val in user_dict.items %}#}
{#        <li><a href="/detail/?nid={{ k }}" target="_blank">{{ val.name }}</a></li>#}
{#    {% endfor %}#}

{#URL方法二#}
    {% for k,val in user_dict.items %}
        <li><a href="/detail/{{ k }}.html" target="_blank">{{ val.name }}</a></li>
    {% endfor %}
</ul>

</body>
</html>